<?php
require_once('../config/config.php') ;
require_once(SYSTEM_PATH.'classes/error'.EXT) ;
require_once(SYSTEM_PATH.'classes/loader'.EXT) ;
Loader::includeClass('cosmo') ;
Loader::includeClass('core') ;
Loader::includeClass('database/database','core') ;
Loader::includeClass('database/database_driver','core') ;
Loader::includeClass('controller') ;
Loader::includeClass('model') ;
$load 	=& Loader::getInstance() ;
$core	=& Core::getInstance() ;
$db 		= new Database() ;
$load->setDatabase($db) ;
$core->initSite() ;
$core->execute() ;
$core->display();
?>